package cn.sc.allinpay.allfavour.business.common.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description：指定满减
 * author：pany
 * on 2018/8/2 16:30
 */
public class AssignReduceData implements Parcelable {
    private String specAmt;// 达到金额  单位为分
    private String reduceAmt;// 立减金额  单位为分
    private String isShare;// 是否外部同享 0不同享1同享
    private String startTime;// 起始时间
    private String endTime;// 结束时间

    public AssignReduceData() {

    }

    protected AssignReduceData(Parcel in) {
        specAmt = in.readString();
        reduceAmt = in.readString();
        isShare = in.readString();
        startTime = in.readString();
        endTime = in.readString();
    }

    public String getSpecAmt() {
        return specAmt;
    }

    public void setSpecAmt(String specAmt) {
        this.specAmt = specAmt;
    }

    public String getReduceAmt() {
        return reduceAmt;
    }

    public void setReduceAmt(String reduceAmt) {
        this.reduceAmt = reduceAmt;
    }

    public String getIsShare() {
        return isShare;
    }

    public void setIsShare(String isShare) {
        this.isShare = isShare;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public static final Creator<AssignReduceData> CREATOR = new Creator<AssignReduceData>() {
        @Override
        public AssignReduceData createFromParcel(Parcel in) {
            return new AssignReduceData(in);
        }

        @Override
        public AssignReduceData[] newArray(int size) {
            return new AssignReduceData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(specAmt);
        parcel.writeString(reduceAmt);
        parcel.writeString(isShare);
        parcel.writeString(startTime);
        parcel.writeString(endTime);
    }
}
